package demo10;

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sr=new Scanner(System.in);
        double m=sr.nextDouble();
        double p=sr.nextDouble();
        int n=sr.nextInt();
        double l=m;
        for (int i = 0; i < n; i++) {
            l=l+l*p;
        }
        System.out.print(Math.round(l)+" ");
        double r=m+(m*p)*n;
        System.out.println(Math.round(r)+" ");
        System.out.println(Math.round(l-r));
    }
}
